<zk>
	<tree id="tree" width="100%" rows="8" zclass="z-vfiletree"
		onDoubleClick="doSome()">
		<treecols sizable="true">
			<treecol label="分类名称" />
			<treecol label="说明" />
			<treecol label="状态" />
		</treecols>
		<treechildren>
			<treeitem>
				<treerow>
					<treecell label="人力资源" />
					<treecell label="Human Resources Management" />
					<treecell label="启用" />
				</treerow>
				<treechildren>
					<treeitem visible="false">
						<treerow>
							<treecell label="Empty" />
							<treecell label="" />
							<treecell label="启用" />
						</treerow>
					</treeitem>
				</treechildren>
			</treeitem>
			<treeitem>
				<treerow>
					<treecell label="分类 2" />
					<treecell label="" />
					<treecell label="启用" />
				</treerow>
				<treechildren>
					<treeitem>
						<treerow>
							<treecell label="分类 2.1" />
							<treecell label="" />
							<treecell label="启用" />
						</treerow>
						<treechildren>
							<treeitem>
								<treerow>
									<treecell label="分类 2.1.1" />
									<treecell label="" />
									<treecell label="启用" />
								</treerow>
							</treeitem>
							<treeitem>
								<treerow>
									<treecell label="分类 2.1.2" />
									<treecell label="" />
									<treecell label="启用" />
								</treerow>
							</treeitem>
						</treechildren>
					</treeitem>
					<treeitem>
						<treerow>
							<treecell label="分类 2.2" />
							<treecell label="" />
							<treecell label="启用" />
						</treerow>
						<treechildren>
							<treeitem>
								<treerow>
									<treecell label="分类 2.2.1" />
									<treecell label="" />
									<treecell label="启用" />
								</treerow>
							</treeitem>
						</treechildren>
					</treeitem>
				</treechildren>
			</treeitem>
		</treechildren>
	</tree>
	<window id="win" border="normal" width="450px" minheight="350"
		visible="false">
		<caption image="/img/Centigrade-Widget-Icons/FirstWindow-24x24.png"
			label="课程信息" />
		<grid vflex="1">
			<columns>
				<column width="100px" />
				<column />
			</columns>
			<rows>
				<row>
					<label value="分类名称" />
					<textbox width="250px" constraint="no empty: 请输入分类名称" />
				</row>
				<row>
					<label value="分类代码" />
					<textbox width="250px" />
				</row>
				<row>
					<label value="分类说明" />
					<textbox rows="3" width="250px" />
				</row>
				<row>
					<label value="启用" />
					<radiogroup>
						<radio label="是" />
						<radio label="否" checked="true" />
					</radiogroup>
				</row>
				<row>
					<label value="" />
					<hlayout>
						<button label="保存" onClick="save()" />
						<button label="关闭" onClick="close()"/>
						<button label="删除" onClick="close()"/>
					</hlayout>
				</row>
			</rows>
		</grid>
		<zscript>
			void close(){
			win.visible=false;
			}
			void save(){
			Messagebox.show("保存成功.");
			win.visible=false;
			}
		</zscript>
	</window>
	<zscript>
		void doSome(){
		win.visible=false;
		win.doModal();

		}
	</zscript>

</zk>
